<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加评论</title>
</head>
<body>
<form class="user" name="commentAdd" method="post" th:action="@{/comment/add}" th:object="${comment}">
    <input type="hidden" id="id" name="id" th:value="${comment?.id}">
    <div >
        <div >
            电影名称：
            <select name="movieId" id="movieId">
                <option value="">--选择电影--</option>
                <option th:each="oo : ${movies}" th:value="${oo.id}" th:text="${oo.name}" th:selected="${movie?.name}==${oo.name}">value</option>
            </select>
        </div>
    </div>

    <div >
        <div >
            评论内容：
            <input type="text"  th:field="*{comment}" placeholder="评论内容">
        </div>
    </div>
    <input type="submit" value="添加/修改" class="btn btn-success" >
</form>

</body>
</html>